import request from '@/utils/request'

// 查询投资成本构成列表
export function listInvestment(query) {
  return request({
    url: '/check/investment/list',
    method: 'get',
    params: query
  })
}

// 查询投资成本构成详细
export function getInvestment(storeInvestmentId) {
  return request({
    url: '/check/investment/' + storeInvestmentId,
    method: 'get'
  })
}

// 新增投资成本构成
export function addInvestment(data) {
  return request({
    url: '/check/investment',
    method: 'post',
    data: data
  })
}

// 修改投资成本构成
export function updateInvestment(data) {
  return request({
    url: '/check/investment',
    method: 'put',
    data: data
  })
}

// 删除投资成本构成
export function delInvestment(storeInvestmentId) {
  return request({
    url: '/check/investment/' + storeInvestmentId,
    method: 'delete'
  })
}
